<?php /* Widget Title: Deal Tags */ ?>

<?php
/* Widget Content */

$Record = new Pod('tags');
$Record->page = 1;
$Record->search = false;
$Record->findRecords('RAND()', 30);

$i=0;
$arr= array();
while($Record->fetchRecord()){
	$campaigns = $Record->get_field('campaigns.id');
	if(!empty($campaigns)){
		$name  = stripslashes($Record->get_field('name'));
		$url = $Record->get_field('slug');
		$arr[$i] = $name;
?>
		<a href="<?php echo BUZZR_URL.'/'.$url; ?>" ><?php echo $name; ?></a>
<?php
$i = $i+1;
	}
}

/* Widget Content */
?>

<?php
/* Widget Logic */ 
is_pod_page()
/* Widget Logic */ 
?>